#include"MainHeader.h"


int main(void)
{
	cout << "欢迎来到 W A M 服务器管理控制台 \n 默认路径: \n D:\"Server\"GMS\"ServerGMS.exe" << endl;
	cout << "选项(s)\n(不分大小写，甚至A=1?): \n A.酷酷的一键启动!          B.启动指定服务器          C:启动数据库          D:一键关服!          E:关闭数据库\nF:系统环境信息          G: 服务端位置信息         H:服务端设置          I:服务器设置          Q:退出程序" << endl;
	cout << "请输入您的选项:" << endl;
	char UserIntPut;
	cin >> UserIntPut;
	while (UserIntPut != 'Q')
	{
		switch(UserIntPut)
		{
		case 'A':StartServer();
			break;
		case 'a':StartServer();
			break;
		case '1':StartServer();
			break;
		case 'B':StartServerByDesignate();
			break;
		case 'b':StartServerByDesignate();
			break;
		case '2':StartServerByDesignate();
			break;
		case 'C':StartDataBase();
			break;
		case 'c':StartDataBase();
			break;
		case '3':StartDataBase();
			break;
		case 'D':StopServerImmiately();
			break;
		case 'd':StopServerImmiately();
			break;
		case '4':StopServerImmiately();
			break;
		case 'E':StopDataBase();
			break;
		case 'e':StopDataBase();
			break;
		case '5':StopDataBase();
			break;
		case 'F':PrintServerSideLocInf();
			break;
		case 'f':PrintServerSideLocInf();
			break;
		case '6':PrintServerSideLocInf();
			break;
		case 'G':PrintServerEnvironmentInf();
			break;
		case 'g':PrintServerEnvironmentInf();
			break;
		case '7':PrintServerEnvironmentInf();
			break;
		case 'H':SetServerSideConfig();
			break;
		case 'h':SetServerSideConfig();
			break;
		case '8':SetServerSideConfig();
			break;
		case 'I':MoudleSecurityMain(true);
			break;
		case 'i':MoudleSecurityMain(true);
			break;
		case '9':MoudleSecurityMain(true);
			break;
		case 'J':GSMVersion();
			break;
		case 'j':GSMVersion();
			break;
		case '10':GSMVersion();
			break;
		case 'Q':exit(0);
			break;
		case 'q':exit(0);
			break;
		case '99':exit(0);
			break;
		default:cout << "请输入正确的选项： " << endl;
			break;
		}
		cout << "选项(s)\n(不分大小写，甚至A=1?): \n A.酷酷的一键启动!          B.启动指定服务器          C:启动数据库          D:一键关服!          E:关闭数据库\nF:服务端位置信息          G:系统环境信息          H:服务端设置          I:GSM设置          Q:退出程序" << endl;
		cout << "请输入您的选项:" << endl;
		cin >> UserIntPut;
	}
}